Micron Document
🎖️GitЯра🎖️


Displaying Raw • Download

core/model/src/commonMain/kotlin/org/meshtastic/core/model/MqttProbeStatus.kt 4e15ef1c7f68f8c683fe8b7ff741a5167e154d2e (4e15ef1c) Text, 2.07 KB

T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.core.model

T8b949e/**
* UI-friendly outcome of a one-shot MQTT broker reachability probe.
*
* Mirrors the failure shapes of `org.meshtastic.mqtt.ProbeResult` but stays in the model module so feature/UI code can
* consume the result without depending on the MQTT library.
*/
Tff7b72sealed Tff7b72class T56d364MqttProbeStatus Tb4b4b4{
T8b949e/** Probe is currently in flight. */
Tff7b72data Tff7b72object T56d364Probing Tb4b4b4: Te6edf3MqttProbeStatusTb4b4b4(Tb4b4b4)

T8b949e/**
* Broker accepted the connection. [serverInfo] is a short human-readable summary of any CONNACK properties that are
* useful to surface to the user.
*/
Tff7b72data Tff7b72class T56d364SuccessTb4b4b4(Tff7b72val Te6edf3serverInfoTb4b4b4: Tffa657String?Tb4b4b4) Tb4b4b4: Te6edf3MqttProbeStatusTb4b4b4(Tb4b4b4)

T8b949e/** Broker rejected the connection (CONNACK with non-zero reason code). */
Tff7b72data Tff7b72class T56d364RejectedTb4b4b4(Tff7b72val Te6edf3reasonCodeTb4b4b4: Tffa657IntTb4b4b4, Tff7b72val Te6edf3reasonTb4b4b4: Tffa657String?Tb4b4b4, Tff7b72val Te6edf3serverReferenceTb4b4b4: Tffa657String?Tb4b4b4) Tb4b4b4: Te6edf3MqttProbeStatusTb4b4b4(Tb4b4b4)

T8b949e/** DNS lookup failed. */
Tff7b72data Tff7b72class T56d364DnsFailureTb4b4b4(Tff7b72val Te6edf3messageTb4b4b4: Tffa657String?Tb4b4b4) Tb4b4b4: Te6edf3MqttProbeStatusTb4b4b4(Tb4b4b4)

T8b949e/** TCP socket could not be opened. */
Tff7b72data Tff7b72class T56d364TcpFailureTb4b4b4(Tff7b72val Te6edf3messageTb4b4b4: Tffa657String?Tb4b4b4) Tb4b4b4: Te6edf3MqttProbeStatusTb4b4b4(Tb4b4b4)

T8b949e/** TLS handshake failed. */
Tff7b72data Tff7b72class T56d364TlsFailureTb4b4b4(Tff7b72val Te6edf3messageTb4b4b4: Tffa657String?Tb4b4b4) Tb4b4b4: Te6edf3MqttProbeStatusTb4b4b4(Tb4b4b4)

T8b949e/** Probe exceeded its timeout. */
Tff7b72data Tff7b72class T56d364TimeoutTb4b4b4(Tff7b72val Te6edf3timeoutMsTb4b4b4: Tffa657LongTb4b4b4) Tb4b4b4: Te6edf3MqttProbeStatusTb4b4b4(Tb4b4b4)

T8b949e/** Any other / unclassified failure. */
Tff7b72data Tff7b72class T56d364OtherTb4b4b4(Tff7b72val Te6edf3messageTb4b4b4: Tffa657String?Tb4b4b4) Tb4b4b4: Te6edf3MqttProbeStatusTb4b4b4(Tb4b4b4)
Tb4b4b4}

Served by rngit 1.5.0 - Generated in 0.04s